<?php

namespace App\Models\Wechat;

use App\Models\Model;

class ReplyKeywords extends Model
{

    protected $table = 'wechat_reply_keywords';

    public function content()
    {
        return $this->hasOne(ReplyContent::class,'id','reply_id');
    }

    public function getBeginTimeAttribute($value){
        return date('Y-m-d H:i:s',$value);
    }

    public function getEndTimeAttribute($value){
        return date('Y-m-d H:i:s',$value);
    }
}
